/*
 * File: PrjCfg.c
 *
 * Code generated for Project configuration.
 *
 * Genrated author          :GCXN-0321
 * Tool version             :v1.0
 * Source code generated on :29-Feb-2024 09:02:05
 */
#include "PrjCfg.h"

/* OCV矩阵表(精度/0.1%) */
const uint16_T CFG_SOC_OCV_Tab[450] = {
    0,0,0,0,0,0,0,0,0,
    0,1,1,1,1,1,1,1,1,
    2,2,2,3,3,3,3,3,2,
    3,4,4,4,4,4,4,4,4,
    5,5,5,6,6,6,6,6,5,
    6,7,7,7,7,7,7,7,7,
    8,8,8,9,9,9,9,9,9,
    9,10,10,10,10,10,10,10,10,
    11,11,11,12,12,12,12,12,12,
    12,13,13,13,13,13,13,13,13,
    14,14,14,15,15,15,15,15,15,
    15,16,16,16,16,16,16,16,16,
    17,17,17,17,18,18,18,18,18,
    18,19,19,19,19,19,19,19,19,
    20,20,20,20,21,21,21,21,21,
    21,22,22,22,22,22,22,22,22,
    23,23,23,23,24,24,24,24,24,
    24,25,25,25,25,25,25,25,25,
    26,26,26,26,27,27,27,27,27,
    27,28,28,28,28,28,28,28,28,
    29,29,29,29,30,30,30,30,30,
    30,31,31,31,31,31,31,31,31,
    32,32,32,32,33,33,33,33,33,
    33,34,34,34,34,34,34,34,34,
    35,35,35,35,36,36,36,36,36,
    36,37,37,37,37,37,37,37,37,
    38,38,38,38,39,39,39,39,39,
    39,40,40,40,40,40,40,40,40,
    41,41,41,41,42,42,42,42,42,
    42,43,43,43,43,43,43,43,43,
    44,44,44,44,45,45,45,45,45,
    45,46,46,46,46,46,46,46,47,
    47,47,47,47,48,48,48,48,48,
    48,49,49,49,49,49,49,49,50,
    50,50,51,51,52,52,53,53,54,
    55,56,57,57,58,58,59,59,59,
    60,62,63,63,64,64,64,64,65,
    66,68,69,69,69,70,70,70,71,
    72,74,75,75,75,76,76,76,76,
    78,80,81,81,81,81,81,81,82,
    84,86,86,87,87,87,87,87,87,
    90,92,92,93,93,93,93,92,93,
    96,97,98,99,99,99,99,98,98,
    127,141,142,143,143,143,143,138,138,
    164,167,168,168,168,167,167,165,165,
    184,186,188,188,188,186,186,184,183,
    206,210,212,212,212,209,209,206,203,
    241,244,245,245,245,241,241,238,235,
    279,281,281,281,279,275,274,271,268,
    300,300,300,300,300,300,300,300,300};

/* OCV矩阵表(精度/0.1%)温度轴 Offect -40 */
const uint8_T CFG_TMP_OCV_Tab[9] = {
    20,30,35,40,45,55,65,75,85};

/* OCV矩阵表(精度/0.1%)单体电压轴 */
const uint16_T CFG_VOL_OCV_Tab[50] = {
    2768,2778,2789,2799,2809,2820,2830,2841,2851,2861,
    2872,2882,2892,2903,2913,2924,2934,2944,2955,2965,
    2975,2986,2996,3006,3017,3027,3038,3048,3058,3069,
    3079,3089,3100,3110,3120,3131,3141,3152,3162,3172,
    3183,3193,3203,3214,3224,3235,3245,3255,3266,3276};

/* OCV矩阵表(精度/0.1%) */
const uint16_T CFG_SOC_OCV_Tab_All[700] = {
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,1,0,0,0,0,0,1,0,3,2,
    0,1,0,0,4,0,0,0,1,0,4,2,6,5,
    3,4,0,3,7,2,0,0,4,0,7,5,9,8,
    6,7,0,6,10,5,4,0,7,4,10,8,12,11,
    9,10,0,9,13,8,7,3,10,7,13,11,15,14,
    12,13,3,13,16,11,10,7,13,10,16,14,17,17,
    15,16,7,16,19,14,13,10,16,13,19,17,20,19,
    18,19,10,19,21,17,16,13,19,16,22,20,23,22,
    22,22,14,22,24,21,19,16,22,19,25,23,26,25,
    25,25,17,25,27,24,23,20,25,22,28,26,29,28,
    28,28,20,28,30,27,26,23,28,26,31,29,32,31,
    31,31,24,31,33,30,29,26,31,29,34,32,35,34,
    34,35,27,34,36,33,32,29,34,32,37,35,38,37,
    37,38,30,37,39,36,35,33,37,35,39,38,41,40,
    40,41,34,40,42,39,38,36,40,38,42,41,44,43,
    43,44,37,43,45,42,42,39,43,41,45,44,46,46,
    46,47,40,46,48,46,45,42,46,44,48,47,49,49,
    49,50,44,49,51,49,48,46,49,48,51,50,52,52,
    52,53,47,53,54,52,51,49,53,51,54,53,55,54,
    56,56,50,56,57,55,54,52,56,54,57,56,58,57,
    59,59,54,59,60,58,57,55,59,57,60,59,61,60,
    62,62,57,62,63,61,61,59,62,60,63,62,64,63,
    65,65,60,65,66,64,64,62,65,63,66,65,67,66,
    68,68,64,68,69,67,67,65,68,67,69,68,70,69,
    71,71,67,71,72,70,70,68,71,70,72,71,73,72,
    74,74,71,74,75,74,73,72,74,73,75,74,75,75,
    77,77,74,77,78,77,77,75,77,76,78,77,78,78,
    80,80,77,80,81,80,80,78,80,79,81,80,81,81,
    83,83,81,83,84,83,83,81,83,82,83,83,84,84,
    86,87,84,86,87,86,86,85,86,85,86,86,87,86,
    89,90,87,90,90,89,89,88,89,89,89,89,90,89,
    93,93,91,93,93,92,92,91,92,92,92,92,93,92,
    96,96,94,96,96,95,96,94,95,95,95,95,96,95,
    99,99,97,99,99,99,99,98,98,98,98,98,99,98,
    119,118,107,118,119,116,120,109,111,111,112,112,118,112,
    150,148,138,148,151,148,153,140,143,143,145,145,153,146,
    182,178,169,178,184,179,186,172,174,174,178,178,188,180,
    218,212,201,212,220,214,224,204,207,208,214,214,227,217,
    263,258,243,256,262,257,267,244,246,249,256,254,268,257,
    335,318,284,301,312,301,322,285,285,291,297,294,311,297,
    603,600,401,557,543,516,499,366,357,355,357,352,359,348,
    638,635,633,627,625,622,626,603,597,577,546,521,493,399,
    674,670,669,663,662,659,664,643,641,638,635,632,631,624,
    790,754,754,699,699,696,715,683,683,679,676,675,677,670,
    931,919,932,918,916,911,937,909,911,905,911,918,917,911,
    969,945,975,945,940,934,1000,933,950,928,967,1000,1000,1000,
    1000,970,1000,971,965,957,1000,958,989,952,1000,1000,1000,1000,
    1000,996,1000,998,989,979,1000,983,1000,976,1000,1000,1000,1000,
    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000};

/* OCV矩阵表(精度/0.1%)温度轴 Offect -40 */
const uint8_T CFG_TMP_OCV_Tab_All[14] = {
    20,25,30,35,40,45,50,65,75,80,
    85,90,95,100};

/* OCV矩阵表(精度/0.1%)单体电压轴 */
const uint16_T CFG_VOL_OCV_Tab_All[50] = {
    2757,2770,2783,2796,2809,2821,2834,2847,2860,2873,
    2886,2899,2912,2924,2937,2950,2963,2976,2989,3002,
    3015,3027,3040,3053,3066,3079,3092,3105,3118,3130,
    3143,3156,3169,3182,3195,3208,3221,3233,3246,3259,
    3272,3285,3298,3311,3324,3336,3349,3362,3375,3388};

/* OCV矩阵表(精度/0.1%) */
const uint16_T CFG_SOC_OCV_Tab_D33C[500] = {
    0,0,0,0,0,0,0,0,0,0,
    6,4,3,0,0,0,0,0,0,0,
    13,9,6,0,0,0,0,0,0,0,
    19,13,9,0,0,0,0,0,0,0,
    25,18,12,0,0,0,0,0,0,0,
    32,22,15,0,0,0,0,0,0,0,
    38,26,18,0,0,0,0,0,0,0,
    44,31,21,0,0,0,0,0,0,0,
    51,35,24,0,0,0,0,0,0,0,
    59,39,27,0,0,0,0,0,0,0,
    68,44,30,0,0,0,0,0,0,0,
    76,48,33,0,0,0,0,0,0,0,
    84,54,36,0,0,0,0,0,0,0,
    93,60,39,0,0,0,0,0,0,0,
    102,67,42,0,0,0,0,0,0,0,
    112,73,45,0,0,0,0,0,0,0,
    123,80,48,0,0,0,0,0,0,0,
    134,86,52,0,0,0,0,0,0,0,
    145,93,57,0,0,0,0,0,0,0,
    157,99,63,0,0,0,0,0,0,0,
    170,107,68,0,0,0,0,0,0,0,
    184,116,73,3,2,2,1,2,1,1,
    197,124,78,8,6,4,4,4,4,4,
    200,133,84,13,10,6,6,6,6,6,
    200,141,89,18,14,9,8,8,8,8,
    200,150,94,23,18,11,11,10,10,10,
    200,161,100,28,21,13,13,12,12,12,
    200,173,107,33,25,16,15,15,14,14,
    200,184,115,38,29,18,17,17,16,16,
    200,196,122,43,33,21,20,19,19,18,
    200,200,130,48,36,23,22,21,21,21,
    200,200,137,54,40,25,24,23,23,23,
    200,200,145,62,44,28,26,25,25,25,
    200,200,153,70,48,30,29,28,27,27,
    200,200,164,78,53,32,31,30,29,29,
    200,200,176,86,60,35,33,32,31,31,
    200,200,187,94,68,37,36,34,33,33,
    200,200,198,104,75,40,38,36,36,35,
    200,200,200,117,82,42,40,39,38,38,
    200,200,200,130,89,44,42,41,40,40,
    200,200,200,142,97,47,45,43,42,42,
    200,200,200,159,110,49,47,45,44,44,
    200,200,200,182,128,59,49,47,46,46,
    200,200,200,200,147,74,60,49,48,48,
    200,200,200,200,181,88,75,61,53,52,
    200,200,200,200,200,109,90,77,69,66,
    200,200,200,200,200,152,118,93,85,81,
    200,200,200,200,200,198,166,131,102,95,
    200,200,200,200,200,200,200,183,159,148,
    200,200,200,200,200,200,200,200,200,200};

/* OCV矩阵表(精度/0.1%)温度轴 Offect -40 */
const uint8_T CFG_TMP_OCV_Tab_D33C[10] = {
    20,30,40,45,50,60,65,75,85,95};

/* OCV矩阵表(精度/0.1%)单体电压轴 */
const uint16_T CFG_VOL_OCV_Tab_D33C[50] = {
    1999,2024,2048,2073,2098,2122,2147,2171,2196,2221,
    2245,2270,2295,2319,2344,2368,2393,2418,2442,2467,
    2492,2516,2541,2566,2590,2615,2639,2664,2689,2713,
    2738,2763,2787,2812,2837,2861,2886,2910,2935,2960,
    2984,3009,3034,3058,3083,3107,3132,3157,3181,3206};

/* OCV矩阵表(精度/0.1%) */
const uint16_T CFG_SOC_OCV_Tab_D5C[500] = {
    0,0,0,0,0,0,0,0,0,0,
    7,5,3,0,0,0,0,0,0,0,
    14,10,6,0,0,0,0,0,0,0,
    21,15,10,0,0,0,0,0,0,0,
    28,19,13,0,0,0,0,0,0,0,
    36,24,16,0,0,0,0,0,0,0,
    43,29,19,0,0,0,0,0,0,0,
    50,34,23,0,0,0,0,0,0,0,
    58,39,26,0,0,0,0,0,0,0,
    67,44,29,0,0,0,0,0,0,0,
    76,49,32,0,0,0,0,0,0,0,
    84,54,36,0,0,0,0,0,0,0,
    93,61,39,0,0,0,0,0,0,0,
    102,67,42,0,0,0,0,0,0,0,
    113,74,45,0,0,0,0,0,0,0,
    123,80,49,0,0,0,0,0,0,0,
    134,87,53,0,0,0,0,0,0,0,
    144,93,58,0,0,0,0,0,0,0,
    156,99,64,0,0,0,0,0,0,0,
    169,108,69,0,0,0,0,0,0,0,
    183,116,74,0,0,0,0,0,0,0,
    197,125,79,3,2,1,1,1,1,1,
    200,134,85,9,7,4,4,3,3,3,
    200,142,90,14,11,6,6,6,5,5,
    200,151,95,20,15,9,8,8,8,8,
    200,163,101,25,20,11,11,10,10,10,
    200,174,108,31,24,14,13,12,12,12,
    200,186,116,37,28,16,15,15,14,14,
    200,197,123,42,33,19,18,17,16,16,
    200,200,131,48,37,21,20,19,18,18,
    200,200,138,55,41,24,22,21,21,20,
    200,200,146,64,46,26,25,23,23,23,
    200,200,155,72,50,29,27,26,25,25,
    200,200,166,81,58,31,29,28,27,27,
    200,200,178,89,66,34,32,30,29,29,
    200,200,189,97,73,36,34,32,31,31,
    200,200,200,109,81,39,36,35,34,33,
    200,200,200,122,88,42,39,37,36,35,
    200,200,200,135,96,44,41,39,38,38,
    200,200,200,149,107,47,43,41,40,40,
    200,200,200,169,122,49,46,44,42,42,
    200,200,200,191,137,58,48,46,44,44,
    200,200,200,200,154,72,52,48,47,46,
    200,200,200,200,187,86,68,52,49,48,
    200,200,200,200,200,99,83,68,57,53,
    200,200,200,200,200,136,99,83,72,67,
    200,200,200,200,200,179,140,98,87,81,
    200,200,200,200,200,200,187,148,111,95,
    200,200,200,200,200,200,200,195,169,149,
    200,200,200,200,200,200,200,200,200,200};

/* OCV矩阵表(精度/0.1%)温度轴 Offect -40 */
const uint8_T CFG_TMP_OCV_Tab_D5C[10] = {
    20,30,40,45,50,60,65,75,85,95};

/* OCV矩阵表(精度/0.1%)单体电压轴 */
const uint16_T CFG_VOL_OCV_Tab_D5C[50] = {
    1999,2023,2048,2072,2097,2121,2146,2170,2195,2219,
    2244,2268,2293,2317,2342,2366,2391,2415,2439,2464,
    2488,2513,2537,2562,2586,2611,2635,2660,2684,2709,
    2733,2758,2782,2806,2831,2855,2880,2904,2929,2953,
    2978,3002,3027,3051,3076,3100,3125,3149,3174,3198};

/* OCV矩阵表(精度/0.1%) */
const uint16_T CFG_SOC_OCV_Tab_D1C[500] = {
    0,0,0,0,0,0,0,0,0,0,
    8,5,4,0,0,0,0,0,0,0,
    15,10,7,0,0,0,0,0,0,0,
    23,15,11,0,0,0,0,0,0,0,
    30,21,14,0,0,0,0,0,0,0,
    38,26,18,0,0,0,0,0,0,0,
    46,31,21,0,0,0,0,0,0,0,
    54,36,25,0,0,0,0,0,0,0,
    62,41,28,0,0,0,0,0,0,0,
    71,46,32,0,0,0,0,0,0,0,
    79,52,36,0,0,0,0,0,0,0,
    88,58,39,0,0,0,0,0,0,0,
    96,64,43,0,0,0,0,0,0,0,
    105,71,46,0,0,0,0,0,0,0,
    115,77,50,0,0,0,0,0,0,0,
    125,83,55,0,0,0,0,0,0,0,
    135,90,61,0,0,0,0,0,0,0,
    145,96,66,0,0,0,0,0,0,0,
    157,103,72,0,0,0,0,0,0,0,
    170,112,78,0,0,0,0,0,0,0,
    183,121,83,0,0,0,0,0,0,0,
    197,130,89,1,1,0,0,0,0,0,
    200,139,94,7,6,3,3,3,3,3,
    200,147,100,14,11,6,5,5,5,5,
    200,158,107,20,17,9,8,7,7,7,
    200,170,115,27,22,12,11,10,9,9,
    200,182,122,33,27,15,13,12,12,11,
    200,194,130,40,33,18,16,14,14,14,
    200,200,137,46,38,21,18,17,16,16,
    200,200,145,54,44,24,21,19,18,18,
    200,200,153,64,49,27,23,21,21,20,
    200,200,165,74,56,30,26,24,23,22,
    200,200,176,83,65,33,29,26,25,25,
    200,200,188,93,73,36,31,28,27,27,
    200,200,199,103,81,39,34,31,29,29,
    200,200,200,117,89,42,36,33,32,31,
    200,200,200,130,97,45,39,35,34,33,
    200,200,200,144,109,48,41,38,36,36,
    200,200,200,162,124,54,44,40,38,38,
    200,200,200,184,138,64,47,42,41,40,
    200,200,200,200,153,74,49,45,43,42,
    200,200,200,200,180,84,59,47,45,44,
    200,200,200,200,200,94,73,50,47,47,
    200,200,200,200,200,111,87,63,50,49,
    200,200,200,200,200,140,101,78,63,56,
    200,200,200,200,200,181,137,94,79,69,
    200,200,200,200,200,200,181,131,95,83,
    200,200,200,200,200,200,200,183,138,97,
    200,200,200,200,200,200,200,200,188,150,
    200,200,200,200,200,200,200,200,200,200};

/* OCV矩阵表(精度/0.1%)温度轴 Offect -40 */
const uint8_T CFG_TMP_OCV_Tab_D1C[10] = {
    20,30,40,45,50,60,65,75,85,95};

/* OCV矩阵表(精度/0.1%)单体电压轴 */
const uint16_T CFG_VOL_OCV_Tab_D1C[50] = {
    1999,2023,2047,2071,2095,2119,2143,2167,2191,2215,
    2239,2263,2287,2311,2335,2359,2383,2407,2431,2455,
    2479,2503,2527,2551,2575,2599,2623,2647,2671,2695,
    2719,2743,2767,2791,2815,2839,2863,2887,2911,2935,
    2959,2983,3007,3031,3055,3079,3103,3127,3151,3175};

/* OCV矩阵表(精度/0.1%) */
const uint16_T CFG_SOC_OCV_Tab_D16C[200] = {
    800,800,800,800,
    800,800,800,832,
    800,800,800,862,
    800,800,800,888,
    800,800,800,906,
    800,800,816,916,
    800,800,838,927,
    800,800,857,938,
    800,800,873,949,
    800,800,890,950,
    800,800,902,950,
    800,816,909,950,
    800,832,916,950,
    800,848,923,950,
    800,858,930,950,
    800,867,937,950,
    800,877,943,950,
    800,886,950,950,
    812,895,950,950,
    824,902,950,950,
    836,906,950,950,
    847,910,950,950,
    855,914,950,950,
    861,918,950,950,
    867,922,950,950,
    873,925,950,950,
    879,929,950,950,
    886,933,950,950,
    892,937,950,950,
    898,941,950,950,
    902,945,950,950,
    904,949,950,950,
    907,950,950,950,
    909,950,950,950,
    912,950,950,950,
    914,950,950,950,
    917,950,950,950,
    920,950,950,950,
    922,950,950,950,
    925,950,950,950,
    927,950,950,950,
    930,950,950,950,
    932,950,950,950,
    935,950,950,950,
    937,950,950,950,
    940,950,950,950,
    942,950,950,950,
    945,950,950,950,
    947,950,950,950,
    950,950,950,950};

/* OCV矩阵表(精度/0.1%)温度轴 Offect -40 */
const uint8_T CFG_TMP_OCV_Tab_D16C[4] = {
    45,50,55,65};

/* OCV矩阵表(精度/0.1%)单体电压轴 */
const uint16_T CFG_VOL_OCV_Tab_D16C[50] = {
    3385,3388,3390,3393,3395,3398,3401,3403,3406,3408,
    3411,3414,3416,3419,3421,3424,3426,3429,3432,3434,
    3437,3439,3442,3445,3447,3450,3452,3455,3458,3460,
    3463,3465,3468,3471,3473,3476,3478,3481,3483,3486,
    3489,3491,3494,3496,3499,3502,3504,3507,3509,3512};

/* 单体电压有效性配置 */
const uint16_T Pccfg_CellVoltSmpVld[10] = {
    15359,16079,16367,0,0,0,0,0,0,0};

/* 单体温度有效性配置 */
const uint16_T Pccfg_CellTempSmpVld[10] = {
    255,0,0,0,0,0,0,0,0,0};

/* 参与平均电压/累计总压计算的单体电压最大值 */
const uint16_T Pccfg_CellVoltCalMax = 4500;

/* 参与平均电压/累计总压计算的单体电压最小值 */
const uint16_T Pccfg_CellVoltCalMin = 1800;

/* 初始化采集芯片采集最低单体电压 */
const uint16_T Pccfg_CellVoltSmpMin = 1800;

/* 上电后默认温度值,Offect -40 */
const uint8_T Pccfg_CellTempDefVal = 65;

/* 上电后默认电压值 */
const uint16_T Pccfg_CellVoltDefVal = 3300;

/* 分流器电流系数 */
const uint16_T Pccfg_ShuntCurr_A = 300;

/* 分流器电压系数 */
const uint16_T Pccfg_ShuntCurr_Mv = 30;

/* 允许放电最小单体电压 */
const uint16_T Pccfg_CellVoltMinPrmt = 2000;

/* 允许充电最大单体电压 */
const uint16_T Pccfg_CelVoltMaxPrmt = 3700;

/* 电池额定容量 */
const uint16_T Pccfg_BatRatedCap = 1040;

/* 电池单体额定电压 */
const uint16_T Pccfg_BatRatedCellVolt = 3200;

/* 电池额定总压 */
const uint16_T Pccfg_BatRatedHighVolt = 1184;

/* 电池额定总能量 */
const uint16_T Pccfg_BatRatedEnergy = 123;

/* 电池类型(0x0:镍氢 0x1:铁锂 0x2:锰锂 0x3:钛锂 0x4:三元 0x5:其他) */
const uint8_T Pccfg_BatType = 1;

/* 电池厂家(0:YP 1:C 2:GF 3:其它) */
const uint8_T Pccfg_BatManufacture = 3;

/* NVM模型中存储数据长度 */
const uint16_T Pccfg_NvmDataLen = 16;

/* 慢充最高允许充电电流 */
const uint16_T Pccfg_SChgMaxPrmtCurr = 600;

/* 慢充最低允许充电电流(截至充电电流) */
const uint16_T Pccfg_SChgMinPrmtCurr = 100;

/* 慢充降流电压 */
const uint16_T Pccfg_SChgCurrDorpVolt = 3500;

/* 慢充充电保护故障等级 */
const uint8_T Pccfg_SChgFltProtLv = 2;

/* 快充充电保护故障等级 */
const uint8_T Pccfg_QChgFltProtLv = 2;

/* CC有效连接值 */
const uint8_T Pccfg_CCContVal = 2;

/* 放电故障保护等级(请求) */
const uint8_T Pccfg_DsgFltProtLv = 2;

/* 放电严重故障保护等级(强切) */
const uint8_T Pccfg_DsgSeriousFltProtLv = 3;

/* Cp开启加热值 */
const uint8_T Pccfg_CpOperHeatVal = 25;

/* 快充充电截至电压  */
const uint16_T Pccfg_QChgMaxCellVolt = 3620;

/* 快充充电末端截至电流 */
const uint16_T Pccfg_QChgEngingCurr = 300;

/* 慢充充电截至电压  */
const uint16_T Pccfg_SChgMaxCellVolt = 3620;

/* PTC开启加热温度 */
const uint8_T Pccfg_PTCOpenHeatTmp = 40;

/* 最高充电电压 */
const uint16_T Pccfg_MaxChgVolt = 131;

/* 最低放电电压 */
const uint16_T Pccfg_MinDsgVolt = 65;

/* 慢充充电电流异常阈值(正电流) */
const uint8_T Pccfg_SChgAbnlCurr = 2;

/* 快充充电电流异常阈值(正电流) */
const uint8_T Pccfg_QChgAbnlCurr = 2;

/* VCU剩余允许(逆变)放电容量 */
const uint16_T Pccfg_VCUAlwRemEnrg = 50;

/* 电池额定容量 */
const uint16_T Pccfg_BatEnrgRate = 135;

/* 慢充加热开启温度 */
const uint8_T Pccfg_SChgPTCClsTmp = 30;

/* 慢充加热Cp需要满足阈值 */
const uint8_T Pccfg_SChgCpHeatRate = 24;

/* 放电PTC加热开启温度 */
const uint8_T Pccfg_DsgPTCClsTmp = 30;

/* 放电PTC加热关闭温度 */
const uint8_T Pccfg_DsgPTCOprTmp = 40;

/* 快充PTC加热开启温度 */
const uint8_T Pccfg_QChgPTCClsTmp = 58;

/* 快充PTC加热关闭温度 */
const uint8_T Pccfg_QChgPTCOprTmp = 60;

/* 慢充PTC加热关闭温度 */
const uint8_T Pccfg_SChgPTCOprTmp = 40;

/* 快充最高允许PACK充电电压 */
const uint16_T Pccfg_QChgMaxPackVol = 569;

/* 慢充最高允许PACK充电电压 */
const uint16_T Pccfg_SChgMaxPackVol = 569;

/* 快充一致性使能 */
const uint8_T Pccfg_QChgConsistenceEn = 2;

/* 最高允许充电电压 */
const uint16_T Pccfg_UHVBHi = 572;

/* 额定电压 */
const uint16_T Pccfg_NorHighVolt = 318;

/* 电池生产厂商名称,标准ASCII码(长度仅限4Byte,abs) */
const uint8_T Pccfg_BrmBatProdCo[4] = {
    81,68,71,66};

/* 慢充最小充电电流 */
const uint8_T Pccfg_SchgMinChgCurr = 12;

/* SOC充电或回馈限制值 */
const uint16_T Pccfg_ChgSOCLim = 10000;

/*  */
const uint8_T BMS_TYPE_BATTERY = 1;

/*  */
const uint16_T SOC_LPF_LINE = 2500;

/*  */
const uint16_T SOC_LPF_WAIT_TIME = 65535;

/*  */
const uint16_T SOC_SY_WAIT_TIME = 12000;

/*  */
const uint16_T Pccfg_SchgSocUpCalCvltCls1Delta = 230;

/*  */
const uint16_T Pccfg_SchgSocUpCalCvltCls2Delta = 210;

/*  */
const uint16_T SOC_MAX_DELTA_AH = 8750;

/*  */
const uint16_T Pccfg_ChrgSocUpCalCls1SocVal_longertrip = 8900;

/*  */
const uint16_T Pccfg_ChrgSocUpCalCls2SocVal_longertrip = 9300;

/* SOC低端动态校准值1 */
const uint16_T Pccfg_SocChkVal1 = 1700;

/* SOC低端动态校准值2 */
const uint16_T Pccfg_SocChkVal2 = 800;

/* SOC末端修正低温阈值 */
const uint8_T Pccfg_SocChkLowTemp = 50;

/* SOC末端修正中间温度阈值 */
const uint8_T Pccfg_SocChkMidTemp = 65;

/* SOC末端修正高温阈值 */
const uint8_T Pccfg_SocChkHighTemp = 85;

/* SOC末端修正放电电流1 */
const uint16_T Pccfg_SocChkDsgCurrClass1 = 44000;

/* SOC末端修正放电电流2 */
const uint16_T Pccfg_SocChkDsgCurrClass2 = 44000;

/* SOC末端修正放电电流3 */
const uint16_T Pccfg_SocChkDsgCurrClass3 = 44000;

/* SOC末端修正放电电流4 */
const uint16_T Pccfg_SocChkDsgCurrClass4 = 44000;

/* SOC末端修正放电电压1 */
const uint16_T Pccfg_SocChkDsgVoltClass1 = 3175;

/* SOC末端修正放电电压2 */
const uint16_T Pccfg_SocChkDsgVoltClass2 = 3175;

/* SOC末端修正放电电压3 */
const uint16_T Pccfg_SocChkDsgVoltClass3 = 3175;

/* SOC末端修正放电电压4 */
const uint16_T Pccfg_SocChkDsgVoltClass4 = 3175;

/* SOC末端修正放电电压5 */
const uint16_T Pccfg_SocChkDsgVoltClass5 = 3175;

/* SOC末端修正放电电压6 */
const uint16_T Pccfg_SocChkDsgVoltClass6 = 3175;

/* SOC末端修正放电电压7 */
const uint16_T Pccfg_SocChkDsgVoltClass7 = 3175;

/* SOC末端修正放电电压8 */
const uint16_T Pccfg_SocChkDsgVoltClass8 = 3175;

/* SOC末端修正放电电压9 */
const uint16_T Pccfg_SocChkDsgVoltClass9 = 3175;

/* SOC末端修正电流偏差1 */
const uint16_T Pccfg_SocChkDiffC1 = 20000;

/* SOC末端修正电流偏差2 */
const uint16_T Pccfg_SocChkDiffC2 = 20000;

/* SOC末端修正电流偏差3 */
const uint16_T Pccfg_SocChkDiffC3 = 20000;

/* SOC末端修正电流偏差4 */
const uint16_T Pccfg_SocChkDiffC4 = 20000;

/* SOC末端修正电压偏差1 */
const uint16_T Pccfg_SocChkDiffV1 = 20;

/* SOC末端修正电压偏差2 */
const uint16_T Pccfg_SocChkDiffV2 = 20;

/* SOC末端修正电压偏差3 */
const uint16_T Pccfg_SocChkDiffV3 = 20;

/* SOC末端修正电压偏差4 */
const uint16_T Pccfg_SocChkDiffV4 = 20;

/* SOC末端修正电压偏差5 */
const uint16_T Pccfg_SocChkDiffV5 = 20;

/* SOC末端修正电压偏差6 */
const uint16_T Pccfg_SocChkDiffV6 = 20;

/* SOC末端修正电压偏差7 */
const uint16_T Pccfg_SocChkDiffV7 = 20;

/* SOC末端修正电压偏差8 */
const uint16_T Pccfg_SocChkDiffV8 = 20;

/* SOC末端修正电压偏差9 */
const uint16_T Pccfg_SocChkDiffV9 = 20;

/* SOC末端修正低温阈值1 */
const uint8_T Pccfg_SocChkLowTemp1 = 45;

/* SOC末端修正低温阈值2 */
const uint8_T Pccfg_SocChkLowTemp2 = 55;

/* SOC末端修正低温阈值3 */
const uint8_T Pccfg_SocChkLowTemp3 = 65;

/* SOC末端修正低温阈值4 */
const uint8_T Pccfg_SocChkLowTemp4 = 85;

/* 单体电压过低一级故障判断阈值 */
const uint16_T Pccfg_CellVoltUnderGrade1DetmV = 3000;

/* 单体电压过低一级故障恢复阈值 */
const uint16_T Pccfg_CellVoltUnderGrade1RednV = 3050;

/* 单体电压过低二级故障判断阈值（T＞0℃） */
const uint16_T Pccfg_CellVoltUnderGrade2DetmV = 2800;

/* 单体电压过低二级故障判断阈值（T≤0℃） */
const uint16_T Pccfg_CellVoltUnderGrade2DetmV1 = 3000;

/* 单体电压过低二级故障恢复阈值（T＞0℃） */
const uint16_T Pccfg_CellVoltUnderGrade2RednV = 3000;

/* 单体电压过低二级故障恢复阈值（T≤0℃） */
const uint16_T Pccfg_CellVoltUnderGrade2RednV1 = 3000;

/* 单体电压过低三级故障判断阈值（T＞0℃） */
const uint16_T Pccfg_CellVoltUnderGrade3DetmV = 2000;

/* 单体电压过低三级故障判断阈值（T≤0℃） */
const uint16_T Pccfg_CellVoltUnderGrade3DetmV1 = 2000;

/* 单体电压过低一级故障判断周期 */
const uint16_T Pccfg_CellVoltUnderGrade1DetmTi = 1000;

/* 单体电压过低一级故障恢复周期 */
const uint16_T Pccfg_CellVoltUnderGrade1RednTi = 1000;

/* 单体电压过低二级故障判断周期 */
const uint16_T Pccfg_CellVoltUnderGrade2DetmTi = 500;

/* 单体电压过低二级故障恢复周期 */
const uint16_T Pccfg_CellVoltUnderGrade2RednTi = 1000;

/* 单体电压过低三级故障判断周期 */
const uint16_T Pccfg_CellVoltUnderGrade3DetmTi = 300;

/* 单体电压过高二级故障判断阈值（放电） */
const uint16_T Pccfg_CellVoltOverGrade2DetmV = 3700;

/* 单体电压过高二级故障恢复阈值（放电） */
const uint16_T Pccfg_CellVoltOverGrade2RednV = 3550;

/* 单体电压过高二级故障判断阈值（充电） */
const uint16_T Pccfg_CellVoltOverGrade2DetmV1 = 3700;

/* 单体电压过高二级故障恢复阈值（充电） */
const uint16_T Pccfg_CellVoltOverGrade2RednV1 = 3650;

/* 单体电压过高三级故障判断阈值（放电） */
const uint16_T Pccfg_CellVoltOverGrade3DetmV = 3750;

/* 单体电压过高三级故障判断阈值（充电） */
const uint16_T Pccfg_CellVoltOverGrade3DetmV1 = 3750;

/* 单体电压过高二级故障判断周期（放电） */
const uint16_T Pccfg_CellVoltOverGrade2DetmTi = 500;

/* 单体电压过高二级故障恢复周期（放电） */
const uint16_T Pccfg_CellVoltOverGrade2RednTi = 500;

/* 单体电压过高二级故障判断周期（充电） */
const uint16_T Pccfg_CellVoltOverGrade2DetmTi1 = 500;

/* 单体电压过高二级故障恢复周期（充电） */
const uint16_T Pccfg_CellVoltOverGrade2RednTi1 = 500;

/* 单体电压过高三级故障判断周期（放电） */
const uint16_T Pccfg_CellVoltOverGrade3DetmTi = 300;

/* 单体电压过高三级故障判断周期（充电） */
const uint16_T Pccfg_CellVoltOverGrade3DetmTi1 = 300;

/* 单体压差过高一级故障判断阈值 */
const uint16_T Pccfg_CellVoltDiffGrade1DetmV = 400;

/* 单体压差过高一级故障恢复阈值 */
const uint16_T Pccfg_CellVoltDiffGrade1RednV = 300;

/* 单体压差过高二级故障判断阈值 */
const uint16_T Pccfg_CellVoltDiffGrade2DetmV = 500;

/* 单体压差过高二级故障恢复阈值 */
const uint16_T Pccfg_CellVoltDiffGrade2RednV = 400;

/* 单体压差过高三级故障判断阈值 */
const uint16_T Pccfg_CellVoltDiffGrade3DetmV = 600;

/* 单体压差过高三级故障恢复阈值 */
const uint16_T Pccfg_CellVoltDiffGrade3RednV = 500;

/* 单体压差过高一级故障判断周期 */
const uint16_T Pccfg_CellVoltDiffGrade1DetmTi = 1000;

/* 单体压差过高一级故障恢复周期 */
const uint16_T Pccfg_CellVoltDiffGrade1RednTi = 1000;

/* 单体压差过高二级故障判断周期 */
const uint16_T Pccfg_CellVoltDiffGrade2DetmTi = 500;

/* 单体压差过高二级故障恢复周期 */
const uint16_T Pccfg_CellVoltDiffGrade2RednTi = 1000;

/* 单体压差过高三级故障判断周期 */
const uint16_T Pccfg_CellVoltDiffGrade3DetmTi = 300;

/* 单体压差过高三级故障恢复周期 */
const uint16_T Pccfg_CellVoltDiffGrade3RednTi = 1000;

/* 总压过高一级故障判断阈值 */
const uint16_T Pccfg_PackVoltOverGrade1DetmV = 120;

/* 总压过高一级故障恢复阈值 */
const uint16_T Pccfg_PackVoltOverGrade1RednV = 119;

/* 总压过高二级故障判断阈值（放电） */
const uint16_T Pccfg_PackVoltOverGrade2DetmV = 122;

/* 总压过高二级故障恢复阈值（放电） */
const uint16_T Pccfg_PackVoltOverGrade2RednV = 120;

/* 总压过高二级故障判断阈值（充电） */
const uint16_T Pccfg_PackVoltOverGrade2DetmV1 = 122;

/* 总压过高二级故障恢复阈值（充电） */
const uint16_T Pccfg_PackVoltOverGrade2RednV1 = 120;

/* 总压过高三级故障判断阈值（放电） */
const uint16_T Pccfg_PackVoltOverGrade3DetmV = 124;

/* 总压过高三级故障判断阈值（充电） */
const uint16_T Pccfg_PackVoltOverGrade3DetmV1 = 124;

/* 总压过高一级故障判断周期 */
const uint16_T Pccfg_PackVoltOverGrade1DetmTi = 1000;

/* 总压过高一级故障恢复周期 */
const uint16_T Pccfg_PackVoltOverGrade1RednTi = 1000;

/* 总压过高二级故障判断周期（放电） */
const uint16_T Pccfg_PackVoltOverGrade2DetmTi = 500;

/* 总压过高二级故障恢复周期（放电） */
const uint16_T Pccfg_PackVoltOverGrade2RednTi = 1000;

/* 总压过高二级故障判断周期（充电） */
const uint16_T Pccfg_PackVoltOverGrade2DetmTi1 = 500;

/* 总压过高二级故障恢复周期（充电） */
const uint16_T Pccfg_PackVoltOverGrade2RednTi1 = 1000;

/* 总压过高三级故障判断周期（放电） */
const uint16_T Pccfg_PackVoltOverGrade3DetmTi = 300;

/* 总压过高三级故障判断周期（充电） */
const uint16_T Pccfg_PackVoltOverGrade3DetmTi1 = 300;

/* 总压过低一级故障判断阈值 */
const uint16_T Pccfg_PackVoltUnderGrade1DetmV = 101;

/* 总压过低一级故障恢复阈值 */
const uint16_T Pccfg_PackVoltUnderGrade1RednV = 102;

/* 总压过低二级故障判断阈值（T>0℃） */
const uint16_T Pccfg_PackVoltUnderGrade2DetmV = 92;

/* 总压过低二级故障判断阈值（T≤0℃） */
const uint16_T Pccfg_PackVoltUnderGrade2DetmV1 = 92;

/* 总压过低二级故障恢复阈值（T>0℃） */
const uint16_T Pccfg_PackVoltUnderGrade2RednV = 99;

/* 总压过低二级故障恢复阈值（T≤0℃） */
const uint16_T Pccfg_PackVoltUnderGrade2RednV1 = 99;

/* 总压过低三级故障判断阈值（T>0℃） */
const uint16_T Pccfg_PackVoltUnderGrade3DetmV = 83;

/* 总压过低三级故障判断阈值(-10≤T≤0℃) */
const uint16_T Pccfg_PackVoltUnderGrade3DetmV1 = 76;

/* 总压过低三级故障判断阈值(T≤-10℃) */
const uint16_T Pccfg_PackVoltUnderGrade3DetmV2 = 66;

/* 总压过低一级故障判断周期 */
const uint16_T Pccfg_PackVoltUnderGrade1DetmTi = 1000;

/* 总压过低一级故障恢复周期 */
const uint16_T Pccfg_PackVoltUnderGrade1RednTi = 1000;

/* 总压过低二级故障判断周期 */
const uint16_T Pccfg_PackVoltUnderGrade2DetmTi = 500;

/* 总压过低二级故障恢复周期 */
const uint16_T Pccfg_PackVoltUnderGrade2RednTi = 1000;

/* 总压过低三级故障判断周期 */
const uint16_T Pccfg_PackVoltUnderGrade3DetmTi = 300;

/* 单体温度过高一级故障判断阈值（放电） */
const uint8_T Pccfg_CellTempOverGrade1DetmT = 95;

/* 单体温度过高一级故障判断阈值（充电） */
const uint8_T Pccfg_CellTempOverGrade1DetmT1 = 93;

/* 单体温度过高一级故障恢复阈值（放电） */
const uint8_T Pccfg_CellTempOverGrade1RednT = 90;

/* 单体温度过高一级故障恢复阈值（充电） */
const uint8_T Pccfg_CellTempOverGrade1RednT1 = 88;

/* 单体温度过高二级故障判断阈值（放电） */
const uint8_T Pccfg_CellTempOverGrade2DetmT = 98;

/* 单体温度过高二级故障判断阈值（充电） */
const uint8_T Pccfg_CellTempOverGrade2DetmT1 = 93;

/* 单体温度过高二级故障恢复阈值（放电） */
const uint8_T Pccfg_CellTempOverGrade2RednT = 95;

/* 单体温度过高二级故障恢复阈值（充电） */
const uint8_T Pccfg_CellTempOverGrade2RednT1 = 90;

/* 单体温度过高三级故障判断阈值（放电） */
const uint8_T Pccfg_CellTempOverGrade3DetmT = 100;

/* 单体温度过高三级故障判断阈值（充电） */
const uint8_T Pccfg_CellTempOverGrade3DetmT1 = 95;

/* 单体温度过高一级故障判断周期（放电） */
const uint16_T Pccfg_CellTempOverGrade1DetmTi = 500;

/* 单体温度过高一级故障恢复周期（放电） */
const uint16_T Pccfg_CellTempOverGrade1RednTi = 500;

/* 单体温度过高一级故障判断周期（放电） */
const uint16_T Pccfg_CellTempOverGrade1DetmTi1 = 1500;

/* 单体温度过高一级故障恢复周期（放电） */
const uint16_T Pccfg_CellTempOverGrade1RednTi1 = 500;

/* 单体温度过高二级故障判断周期（放电） */
const uint16_T Pccfg_CellTempOverGrade2DetmTi = 500;

/* 单体温度过高二级故障恢复周期（放电） */
const uint16_T Pccfg_CellTempOverGrade2RednTi = 500;

/* 单体温度过高三级故障判断周期（放电） */
const uint16_T Pccfg_CellTempOverGrade3DetmTi = 300;

/* 单体温度过高三级故障判断周期（充电） */
const uint16_T Pccfg_CellTempOverGrade3DetmTi1 = 300;

/* 单体温度过低二级故障判断阈值（放电） */
const uint8_T Pccfg_CellTempUnderGrade2DetmT = 25;

/* 单体温度过低一级故障判断阈值（放电） */
const uint8_T Pccfg_CellTempUnderGrade1DetmT = 30;

/* 单体温度过低一级故障恢复阈值（放电） */
const uint8_T Pccfg_CellTempUnderGrade1RednT = 31;

/* 单体温度过低二级故障判断阈值（充电） */
const uint8_T Pccfg_CellTempUnderGrade2DetmT1 = 30;

/* 单体温度过低二级故障恢复阈值（放电） */
const uint8_T Pccfg_CellTempUnderGrade2RednT = 30;

/* 单体温度过低二级故障恢复阈值（充电） */
const uint8_T Pccfg_CellTempUnderGrade2RednT1 = 40;

/* 单体温度过低三级故障判断阈值（放电） */
const uint8_T Pccfg_CellTempUnderGrade3DetmT = 20;

/* 单体温度过低二级故障判断周期 */
const uint16_T Pccfg_CellTempUnderGrade1DetmTi = 1500;

/* 单体温度过低二级故障恢复周期 */
const uint16_T Pccfg_CellTempUnderGrade1RednTi = 500;

/* 单体温度过低二级故障判断周期 */
const uint16_T Pccfg_CellTempUnderGrade2DetmTi = 500;

/* 单体温度过低二级故障恢复周期 */
const uint16_T Pccfg_CellTempUnderGrade2RednTi = 500;

/* 单体温度过低三级故障判断周期（放电） */
const uint16_T Pccfg_CellTempUnderGrade3DetmTi = 300;

/* 电池温差过大一级故障判断阈值 */
const uint8_T Pccfg_CellTempDiffGrade1DetmT = 10;

/* 电池温差过大一级故障恢复阈值 */
const uint8_T Pccfg_CellTempDiffGrade1RednT = 8;

/* 电池温差过大二级故障判断阈值 */
const uint8_T Pccfg_CellTempDiffGrade2DetmT = 12;

/* 电池温差过大二级故障恢复阈值 */
const uint8_T Pccfg_CellTempDiffGrade2RednT = 10;

/* 电池温差过大三级故障判断阈值 */
const uint8_T Pccfg_CellTempDiffGrade3DetmT = 15;

/* 电池温差过大一级故障判断周期 */
const uint16_T Pccfg_CellTempDiffGrade1DetmTi = 1500;

/* 电池温差过大一级故障恢复周期 */
const uint16_T Pccfg_CellTempDiffGrade1RednTi = 1000;

/* 电池温差过大二级故障判断周期 */
const uint16_T Pccfg_CellTempDiffGrade2DetmTi = 1000;

/* 电池温差过大二级故障恢复周期 */
const uint16_T Pccfg_CellTempDiffGrade2RednTi = 1000;

/* 电池温差过大三级故障判断周期 */
const uint16_T Pccfg_CellTempDiffGrade3DetmTi = 300;

/* 电芯SOC差值过大一级故障判断阈值 */
const uint16_T Pccfg_CellSOCDiffGrade1DetmS = 15;

/* 电芯SOC差值过大一级故障恢复阈值 */
const uint16_T Pccfg_CellSOCDiffGrade1RednS = 12;

/* 电芯SOC差值过大一级故障判断周期 */
const uint16_T Pccfg_CellSOCDiffGrade1DetmTi = 2000;

/* 电芯SOC差值过大一级故障恢复周期 */
const uint16_T Pccfg_CellSOCDiffGrade1RednTi = 1000;

/* SOH过低一级故障判断阈值 */
const uint8_T Pccfg_SOHUnderGrade1DetmS = 80;

/* SOH过低二级故障判断阈值 */
const uint8_T Pccfg_SOHUnderGrade2DetmS = 0;

/* SOH过低故障判断时间 */
const uint16_T Pccfg_SOHUnderGradeDetmTi = 300;

/* SOH过低一级故障判断连续上下电次数 */
const uint8_T Pccfg_SOHUnderGrade1DetmTi = 40;

/* SOH过低二级故障判断连续上下电次数 */
const uint8_T Pccfg_SOHUnderGrade2DetmTi = 40;

/* SOC过低一级故障判断阈值 */
const uint16_T Pccfg_SOCUnderGrade1DetmS = 3000;

/* SOC过低一级故障恢复阈值 */
const uint16_T Pccfg_SOCUnderGrade1RednS = 3050;

/* SOC过低二级故障判断阈值 */
const uint16_T Pccfg_SOCUnderGrade2DetmS = 2000;

/* SOC过低二级故障恢复阈值 */
const uint16_T Pccfg_SOCUnderGrade2RednS = 2100;

/* SOC过低一级故障判断周期 */
const uint16_T Pccfg_SOCUnderGrade1DetmTi = 1500;

/* SOC过低一级故障恢复周期 */
const uint16_T Pccfg_SOCUnderGrade1RednTi = 500;

/* SOC过低故障判断周期 */
const uint16_T Pccfg_SOCUnderGradeDetmTi = 1000;

/* SOC过低故障恢复周期 */
const uint16_T Pccfg_SOCUnderGradeRednTi = 500;

/* SOC跳变一级故障判断阈值 */
const uint16_T Pccfg_SOCJumpGrade1DetmS = 1500;

/* SOC跳变一级故障恢复阈值 */
const uint16_T Pccfg_SOCJumpGrade1RednS = 500;

/* SOC过高故障判断阈值 */
const uint16_T Pccfg_SOCOverGrade3DetmS = 9000;

/* SOC过高故障判断周期 */
const uint16_T Pccfg_SOCOverGradeDetmTi = 1000;

/* 放电过流二级故障倍率判断阈值 */
const int16_T Pccfg_DsgCurrOverGrade2DetmT = 105;

/* 放电过流二级故障电流判断阈值 */
const int16_T Pccfg_DsgCurrOverGrade2DetmA = 10;

/* 放电过流二级故障倍率恢复阈值 */
const int16_T Pccfg_DsgCurrOverGrade2RednT = 100;

/* 放电过流三级故障倍率判断阈值 */
const int16_T Pccfg_DsgCurrOverGrade3DetmT = 120;

/* 放电过流三级故障电流判断阈值 */
const int16_T Pccfg_DsgCurrOverGrade3DetmA = 10;

/* 放电过流一级故障判断时间 */
const uint16_T Pccfg_DsgCurrOverGrade1DetmTi = 1500;

/* 放电过流一级故障恢复时间 */
const uint16_T Pccfg_DsgCurrOverGrade1RednTi = 1000;

/* 放电过流二级故障判断时间 */
const uint16_T Pccfg_DsgCurrOverGrade2DetmTi = 1000;

/* 放电过流二级故障恢复时间 */
const uint16_T Pccfg_DsgCurrOverGrade2RednTi = 500;

/* 放电过流故障判断时间 */
const uint16_T Pccfg_DsgCurrOverGradeDetmTi = 300;

/* 放电过流故障恢复时间 */
const uint16_T Pccfg_DsgCurrOverGradeRednTi = 500;

/* 充电过流二级故障倍率判断阈值 */
const int16_T Pccfg_ChgCurrOverGrade2DetmT = 105;

/* 充电过流二级故障电流判断阈值 */
const int16_T Pccfg_ChgCurrOverGrade2DetmA = 10;

/* 充电过流二级故障倍率恢复阈值 */
const int16_T Pccfg_ChgCurrOverGrade2RednT = 100;

/* 充电过流三级故障倍率判断阈值 */
const int16_T Pccfg_ChgCurrOverGrade3DetmT = 120;

/* 充电过流三级故障电流判断阈值 */
const int16_T Pccfg_ChgCurrOverGrade3DetmA = 10;

/* 充电过流故障判断时间 */
const uint16_T Pccfg_ChgCurrOverGradeDetmTi = 300;

/* 充电过流故障恢复时间 */
const uint16_T Pccfg_ChgCurrOverGradeRednTi = 500;

/* 整车通讯故障判断时间 */
const uint16_T Pccfg_VcuCommDetmTi = 1000;

/* 慢充通讯故障判断时间 */
const uint16_T Pccfg_SChgCommDetmTi = 300;

/* 单体采样异常故障判断时间 */
const uint16_T Pccfg_CellSmpErrDetmTi = 200;

/* 绝缘阻值过低二级故障判断阈值 */
const uint16_T Pccfg_InsUnderGrade2DetmR = 500;

/* 绝缘阻值过低二级故障恢复阈值 */
const uint16_T Pccfg_InsUnderGrade2RednR = 1000;

/* 绝缘阻值过低三级故障判断阈值 */
const uint16_T Pccfg_InsUnderGrade3DetmR = 100;

/* 绝缘阻值过低二级故障判断时间 */
const uint16_T Pccfg_InsUnderGrade2DetmTi = 1000;

/* 绝缘阻值过低二级故障恢复时间 */
const uint16_T Pccfg_InsUnderGrade2RednTi = 1000;

/* 绝缘阻值过低三级故障判断时间 */
const uint16_T Pccfg_InsUnderGrade3DetmTi = 300;

/* 充电枪温度过高二级故障判断阈值 */
const uint8_T Pccfg_ChgPlugTempOverGrade2DetmT = 110;

/* 充电枪温度过高二级故障恢复阈值 */
const uint8_T Pccfg_ChgPlugTempOverGrade2RednT = 120;

/* 充电枪温度过高三级故障判断阈值 */
const uint8_T Pccfg_ChgPlugTempOverGrade3DetmT = 140;

/* 充电枪温度过高二级故障判断时间 */
const uint16_T Pccfg_ChgPlugTempOverGrade2DetmTi = 1000;

/* 充电枪温度过高二级故障恢复时间 */
const uint16_T Pccfg_ChgPlugTempOverGrade2RednTi = 1000;

/* 充电枪温度过高三级故障判断时间 */
const uint16_T Pccfg_ChgPlugTempOverGrade3DetmTi = 1000;

/* 环路互锁故障判断时间 */
const uint16_T Pccfg_HVILGradeDetmTi = 100;

/* 单体温度采集三级故障判断时间 */
const uint16_T Pccfg_CellTempSmpGrade3DetmTi = 500;

/* 单体电压采集三级故障判断时间 */
const uint16_T Pccfg_CellVoltSmpGrade3DetmTi = 500;

/* Pack电压采集二级故障判断时间 */
const uint16_T Pccfg_PackVoltSmpGrade3DetmTi = 500;

/* Pack电压采集二级故障恢复时间 */
const uint16_T Pccfg_PackVoltSmpGrade2RednTi = 0;

/* 供电电压过高一级故障判断阈值 */
const uint16_T Pccfg_SplyPwrVoltOverGrade1DetmV = 16000;

/* 供电电压过高一级故障恢复阈值 */
const uint16_T Pccfg_SplyPwrVoltOverGrade1RednV = 15000;

/* 供电电压过高一级故障判断时间 */
const uint16_T Pccfg_SplyPwrVoltOverGrade1DetmTi = 300;

/* 供电电压过高一级故障恢复时间 */
const uint16_T Pccfg_SplyPwrVoltOverGrade1RednTi = 300;

/* 供电电压过低三级故障判断阈值 */
const uint16_T Pccfg_SplyPwrVoltUnderGrade3DetmV = 9000;

/* 供电电压过低三级故障判断时间 */
const uint16_T Pccfg_SplyPwrVoltUnderGrade3DetmTi = 300;

/* 充电加热所需电流 */
const uint16_T Pccfg_ChgHeatCurr = 70;

/* 距离满电均衡暂停电压阈值 */
const uint16_T Pccfg_balEndCVlt = 150;

/* 均衡最低单体电压限制值 */
const uint16_T Pccfg_balMinCVlt = 3000;

/* 均衡最低SOC限制值 */
const uint16_T Pccfg_balMinSOC = 1000;

/* 均衡开启高压平均电压偏差值 */
const uint16_T Pccfg_balVDiff = 15;

/* 均衡开启供电电压（12V）有效值 */
const uint16_T Pccfg_balSplyVldVlt = 8500;

/* 计算SOH循环公里数 */
const uint16_T Pccfg_SOHCycleKilom = 100;

/* 电池额定容量 */
const uint16_T Pccfg_NormBattCap = 1040;

/* 脉冲放电电流表 */
const uint16_T Pccfg_DsgPluseCurr_CurrTab[187] = {
    0,104,104,104,104,104,104,104,104,104,104,104,104,104,104,0,0,
    0,104,104,208,312,416,520,624,728,728,832,832,832,728,520,0,0,
    0,104,104,416,728,832,936,1040,1248,1352,1352,1456,1456,1456,728,0,0,
    0,104,208,624,936,1248,1352,1872,2080,2080,2080,2080,2080,2080,884,0,0,
    0,208,312,1040,1144,1248,1352,2080,2080,2080,2080,2080,2080,2080,884,0,0,
    0,343,416,1040,1144,1248,1560,2080,2080,2080,2288,2288,2080,2080,884,0,0,
    0,343,520,1144,1196,1352,1560,2080,2080,2288,2288,2288,2288,2080,884,0,0,
    0,343,520,1196,1248,1352,1560,2080,2080,2288,2288,2288,2288,2080,884,0,0,
    0,343,520,1248,1300,1352,1560,2080,2080,2288,2288,2288,2288,2080,884,0,0,
    0,343,520,1248,1300,1352,1560,2080,2080,2288,2288,2288,2288,2080,884,0,0,
    0,343,520,1248,1352,1456,1716,2080,2080,2288,2288,2288,2288,2080,884,0,0};

/* 脉冲放电电流SOC轴（横坐标） */
const uint8_T Pccfg_DsgPluseCurr_SOCAxis[11] = {
    0,10,20,30,40,50,60,70,80,90,
    100};

/* 脉冲放电电流温度轴（纵坐标） */
const uint8_T Pccfg_DsgPluseCurr_TmpAxis[17] = {
    9,10,20,25,30,35,40,45,50,55,
    60,65,75,85,95,100,101};

/* 持续放电电流表 */
const uint16_T Pccfg_DsgContCurr_CurrTab[187] = {
    0,104,104,104,104,104,104,104,104,104,104,104,104,104,104,0,0,
    0,104,104,104,156,208,208,312,520,520,520,520,520,520,312,0,0,
    0,104,104,104,208,312,312,520,728,1040,1040,1040,1040,1040,520,0,0,
    0,104,208,312,416,520,624,832,1040,1456,1456,1456,1456,1456,520,0,0,
    0,208,312,416,624,728,832,1040,1248,1456,1456,1456,1456,1456,520,0,0,
    0,343,416,624,1040,1144,1248,1352,1456,1456,1456,1456,1456,1456,520,0,0,
    0,343,520,624,1040,1144,1248,1352,1456,1456,1456,1456,1456,1456,520,0,0,
    0,343,520,728,1144,1144,1352,1352,1456,1456,1456,1456,1456,1456,520,0,0,
    0,343,520,832,1144,1248,1352,1352,1456,1456,1456,1456,1456,1456,520,0,0,
    0,343,520,832,1144,1248,1352,1352,1456,1456,1456,1456,1456,1456,520,0,0,
    0,343,520,832,1144,1248,1352,1352,1456,1456,1456,1456,1456,1456,520,0,0};

/* 持续放电电流SOC轴（横坐标） */
const uint8_T Pccfg_DsgContCurr_SOCAxis[11] = {
    0,10,20,30,40,50,60,70,80,90,
    100};

/* 持续放电电流温度轴（纵坐标） */
const uint8_T Pccfg_DsgContCurr_TmpAxis[17] = {
    9,10,20,25,30,35,40,45,50,55,
    60,65,75,85,95,100,101};

/* 脉冲回馈电流表 */
const uint16_T Pccfg_BackPluseCurr_CurrTab[88] = {
    0,1040,1040,1040,1040,780,520,208,
    0,1040,1040,1040,1040,780,520,208,
    0,832,1040,1040,1040,780,520,208,
    0,624,1040,1040,1040,780,520,208,
    0,416,1040,1040,1040,780,520,208,
    0,416,1040,1040,1040,780,520,208,
    0,208,1040,1040,1040,780,520,104,
    0,208,520,1040,1040,728,208,104,
    0,208,520,520,520,520,208,104,
    0,104,104,104,104,104,104,104,
    0,0,0,0,0,0,0,0};

/* 脉冲回馈瞬时电流SOC轴（横坐标） */
const uint8_T Pccfg_BackPluseCurr_SOCAxis[11] = {
    0,20,30,40,50,60,70,80,90,95,
    96};

/* 脉冲回馈瞬时电流温度轴（纵坐标） */
const uint8_T Pccfg_BackPluseCurr_TmpAxis[8] = {
    40,50,60,65,75,85,90,95};

/* 持续回馈电流 */
const uint16_T Pccfg_BackContCurr_CurrTab[88] = {
    0,1040,1040,1040,1040,780,520,208,
    0,1040,1040,1040,1040,780,520,208,
    0,832,1040,1040,1040,780,520,208,
    0,624,1040,1040,1040,780,520,208,
    0,416,1040,1040,1040,780,520,208,
    0,416,1040,1040,1040,780,520,208,
    0,208,1040,1040,1040,780,520,104,
    0,208,520,1040,1040,728,208,104,
    0,208,520,520,520,520,208,104,
    0,104,104,104,104,104,104,104,
    0,0,0,0,0,0,0,0};

/* 回馈持续电流SOC轴（横坐标） */
const uint8_T Pccfg_BackContCurr_SOCAxis[11] = {
    0,20,30,40,50,60,70,80,90,95,
    96};

/* 回馈持续电流温度轴（纵坐标） */
const uint8_T Pccfg_BackContCurr_TmpAxis[8] = {
    40,50,60,65,75,85,90,95};

/* 慢充电流请求表 */
const uint16_T Pccfg_SchgReqCurr_CurrTab[18] = {
    0,0,
    104,104,
    300,300,
    300,300,
    300,300,
    300,300,
    300,300,
    104,104,
    0,0};

/* 慢充电流请求温度坐标轴（纵坐标） */
const uint8_T Pccfg_SchgReqCurr_TmpAxis[9] = {
    40,43,46,51,56,86,92,93,96};

/* 慢充电流请求SOC坐标轴（横坐标） */
const uint16_T Pccfg_SchgReqCurr_SOCAxis[22] = {
    0,5,10,15,20,25,30,35,40,45,
    50,55,60,65,70,75,80,85,90,95,
    99,100};

/* 慢充电流请求电压坐标轴（横坐标） */
const uint16_T Pccfg_SchgReqCurr_VolAxis[2] = {
    1,2};

/* 快充电流请求表 */
const uint16_T Pccfg_QchgReqCurr_CurrTab[88] = {
    0,208,312,395,936,1040,1040,832,416,312,0,
    0,208,312,395,936,1040,1040,832,416,312,0,
    0,208,312,395,780,936,936,832,416,312,0,
    0,208,312,395,780,936,936,832,416,312,0,
    0,156,208,260,416,416,416,312,312,208,0,
    0,104,156,156,260,260,260,208,208,104,0,
    0,104,104,104,104,104,104,104,104,104,0,
    0,104,104,104,104,104,104,104,104,104,0};

/* 快充电流请求温度坐标轴（纵坐标） */
const uint8_T Pccfg_QchgReqCurr_TmpAxis[11] = {
    39,40,46,51,56,61,66,76,86,91,
    95};

/* 快充电流请求SOC坐标轴（横坐标） */
const uint16_T Pccfg_QchgReqCurr_VolAxis[8] = {
    0,50,51,80,81,91,96,100};

/* SOC查表温度 */
const uint8_T CFG_TMP_OCV_Tab1[8] = {
    20,30,40,50,65,75,85,95};

/* SOC查表电压 */
const uint16_T CFG_VOL_OCV_Tab1[50] = {
    3100,3106,3112,3118,3124,3131,3137,3143,3149,3155,
    3161,3167,3173,3180,3186,3192,3198,3204,3210,3216,
    3222,3229,3235,3241,3247,3253,3259,3265,3271,3278,
    3284,3290,3296,3302,3308,3314,3320,3327,3333,3339,
    3345,3351,3357,3363,3369,3376,3382,3388,3394,3400};

/* SOC查表SOC */
const uint16_T CFG_SOC_OCV_Tab1[400] = {
    0,0,0,0,0,0,0,0,
    4,4,4,4,5,6,6,6,
    8,9,8,9,10,11,11,11,
    13,13,12,13,15,17,17,17,
    17,17,16,17,21,23,23,23,
    21,21,20,22,26,28,29,29,
    25,26,24,26,31,34,34,34,
    29,30,28,30,36,40,40,40,
    34,34,32,35,41,45,46,46,
    38,38,36,39,46,51,51,51,
    42,43,40,43,51,57,57,57,
    46,47,44,48,57,62,63,63,
    50,51,48,52,62,68,69,69,
    55,55,52,56,67,74,74,74,
    59,60,56,61,72,79,80,80,
    63,64,60,65,77,85,86,86,
    67,68,64,69,82,91,92,92,
    71,72,68,74,87,96,97,97,
    75,77,72,78,93,105,107,109,
    80,81,76,83,98,118,122,125,
    84,85,80,87,107,131,136,142,
    88,89,83,91,120,145,150,158,
    92,94,87,96,132,158,164,175,
    96,98,91,100,145,171,179,191,
    113,115,95,117,157,185,193,209,
    201,145,99,135,170,198,209,227,
    288,176,126,153,182,215,227,245,
    366,219,157,171,195,233,245,263,
    449,311,187,189,217,251,263,281,
    536,436,289,232,248,269,281,299,
    624,517,473,367,278,287,299,328,
    710,578,530,514,440,345,353,359,
    786,636,568,545,523,522,492,390,
    884,691,605,575,553,570,560,551,
    905,757,638,606,582,609,609,612,
    912,876,670,640,613,635,633,636,
    918,906,741,674,649,660,658,659,
    924,914,906,853,685,686,682,683,
    931,921,914,908,902,901,865,865,
    937,928,922,916,911,910,909,909,
    943,935,929,925,920,919,918,918,
    950,942,937,933,929,928,927,927,
    956,950,945,941,938,937,936,936,
    962,957,953,950,947,946,945,945,
    968,964,961,958,956,955,954,954,
    975,971,969,966,965,964,963,963,
    981,978,976,975,973,973,973,973,
    987,986,984,983,982,982,982,982,
    994,993,992,992,991,991,991,991,
    1000,1000,1000,1000,1000,1000,1000,1000};

/* 1C  0.5C  0.33C */
const uint8_T Pccfg_DCC_CURR[3] = {
    1,2,3};

/*  */
const uint8_T Pccfg_MIN_TEMP[13] = {
    10,15,20,25,30,35,40,45,50,55,
    60,65,80};

/*  */
const uint16_T Pccfg_NORM_CAP[39] = {
    728,728,728,
    770,770,770,
    832,832,832,
    863,863,863,
    905,905,905,
    926,926,926,
    936,936,936,
    957,957,957,
    967,967,967,
    992,992,992,
    1016,1016,1016,
    1040,1040,1040,
    1040,1040,1040};

/* SOH查表
1.SOH估算功能，SOH与循环次数表，数组长度16，不要改动
2.最后一个数据0xAAAA是校验码 */
const uint16_T Pccfg_SOH_Tab[16] = {
    1000,980,960,940,920,900,880,870,860,850,
    840,830,820,810,800,43690};

/* SOC查表充放电循环次数 */
const uint16_T Pccfg_SOH_Cyc_Axis[16] = {
    0,200,400,600,800,1000,1200,1300,1400,1500,
    1600,1700,1800,1900,2000,43690};

/* 温度查SOC修正阈值表电压轴 */
const uint16_T Pccfg_VT_TEMPVOLT_Axis1[13] = {
    2366,2605,2647,2689,2751,2903,2995,2994,2993,3043,
    3070,3127,3160};

/* 温度查SOC修正阈值表温度轴 */
const uint8_T Pccfg_VT_Temp_Tab1[13] = {
    20,25,30,35,40,45,50,55,60,65,
    75,85,95};

/* 温度查SOC修正阈值表电压轴 */
const uint16_T Pccfg_VT_TEMPVOLT_Axis2[13] = {
    2243,2474,2515,2556,2602,2776,2870,2893,2917,2953,
    2985,3072,3079};

/* 温度查SOC修正阈值表温度轴 */
const uint8_T Pccfg_VT_Temp_Tab2[13] = {
    20,25,30,35,40,45,50,55,60,65,
    75,85,95};


/* File trailer for generated code.*/